package cn.net.pap.pinyincut.core;

import org.apache.lucene.analysis.Analyzer;
import org.apache.lucene.analysis.Tokenizer;

public final class PinyinCutAnalyzer extends Analyzer {

    public PinyinCutAnalyzer() {
        super();
    }

    @Override
    protected TokenStreamComponents createComponents(String fieldName) {
        Tokenizer source = new PinyinCutTokenizer();
        return new TokenStreamComponents(source);
    }
}
